package org.sasha.roulette.feed;

import javax.inject.Inject;

import org.sasha.roulette.data.DBHelper;

import com.github.peholmst.mvp4vaadin.Presenter;

@SuppressWarnings("serial")
public class ColorFeedPresenter extends Presenter<ColorFeedView> {

    private DBHelper dbHelper;
    
    @Inject
    public ColorFeedPresenter(final DBHelper dbHelper) {
        this.dbHelper = dbHelper;
    }
    
    public void reloadData() {
        getView().setFeedData(dbHelper.getSpinContainer());
    }
}
